{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}G:\My Drive\LBGT\JJPS Accepted\JJPS log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}19 Jan 2026, 22:40:56

{com}. reg homo3 gender_stereo Q1 Q37 Q38 newQ154_1##i.partyid2 i.religion age gender edu newQ273

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,127
{txt}{hline 13}{c +}{hline 34}   F(16, 1110)     = {res}    39.42
{txt}       Model {c |} {res} 3385.15886        16  211.572429   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 5958.06385     1,110  5.36762509   {txt}R-squared       ={res}    0.3623
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.3531
{txt}       Total {c |} {res} 9343.22272     1,126  8.29771111   {txt}Root MSE        =   {res} 2.3168

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}             homo3{col 20}{c |} Coefficient{col 32}  Std. err.{col 44}      t{col 52}   P>|t|{col 60}     [95% con{col 73}f. interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}gender_stereo {c |}{col 20}{res}{space 2} .5647947{col 32}{space 2}  .092106{col 43}{space 1}    6.13{col 52}{space 3}0.000{col 60}{space 4} .3840732{col 73}{space 3} .7455162
{txt}{space 16}Q1 {c |}{col 20}{res}{space 2} .0448915{col 32}{space 2} .2184183{col 43}{space 1}    0.21{col 52}{space 3}0.837{col 60}{space 4}-.3836678{col 73}{space 3} .4734509
{txt}{space 15}Q37 {c |}{col 20}{res}{space 2}-.2901897{col 32}{space 2} .0696162{col 43}{space 1}   -4.17{col 52}{space 3}0.000{col 60}{space 4}-.4267838{col 73}{space 3}-.1535955
{txt}{space 15}Q38 {c |}{col 20}{res}{space 2}-.1565758{col 32}{space 2} .0814848{col 43}{space 1}   -1.92{col 52}{space 3}0.055{col 60}{space 4}-.3164574{col 73}{space 3} .0033058
{txt}{space 7}1.newQ154_1 {c |}{col 20}{res}{space 2}    .0448{col 32}{space 2} .2447845{col 43}{space 1}    0.18{col 52}{space 3}0.855{col 60}{space 4}-.4354925{col 73}{space 3} .5250926
{txt}{space 18} {c |}
{space 10}partyid2 {c |}
{space 14}KMT  {c |}{col 20}{res}{space 2} .1846725{col 32}{space 2} .3106869{col 43}{space 1}    0.59{col 52}{space 3}0.552{col 60}{space 4}-.4249273{col 73}{space 3} .7942722
{txt}{space 14}DPP  {c |}{col 20}{res}{space 2}-.9279177{col 32}{space 2} .3123606{col 43}{space 1}   -2.97{col 52}{space 3}0.003{col 60}{space 4}-1.540802{col 73}{space 3}-.3150339
{txt}{space 18} {c |}
newQ154_1#partyid2 {c |}
{space 12}1#KMT  {c |}{col 20}{res}{space 2}  .059764{col 32}{space 2} .3612501{col 43}{space 1}    0.17{col 52}{space 3}0.869{col 60}{space 4}-.6490461{col 73}{space 3}  .768574
{txt}{space 12}1#DPP  {c |}{col 20}{res}{space 2} .6853193{col 32}{space 2}  .375254{col 43}{space 1}    1.83{col 52}{space 3}0.068{col 60}{space 4}-.0509678{col 73}{space 3} 1.421606
{txt}{space 18} {c |}
{space 10}religion {c |}
{space 5}Christianity  {c |}{col 20}{res}{space 2} .8557131{col 32}{space 2} .3105667{col 43}{space 1}    2.76{col 52}{space 3}0.006{col 60}{space 4}  .246349{col 73}{space 3} 1.465077
{txt}{space 9}Buddgist  {c |}{col 20}{res}{space 2} .3058836{col 32}{space 2} .2621635{col 43}{space 1}    1.17{col 52}{space 3}0.244{col 60}{space 4}-.2085083{col 73}{space 3} .8202755
{txt}{space 6}Folk belief  {c |}{col 20}{res}{space 2}  .382045{col 32}{space 2} .1812227{col 43}{space 1}    2.11{col 52}{space 3}0.035{col 60}{space 4} .0264674{col 73}{space 3} .7376226
{txt}{space 18} {c |}
{space 15}age {c |}{col 20}{res}{space 2} .0446757{col 32}{space 2} .0055879{col 43}{space 1}    8.00{col 52}{space 3}0.000{col 60}{space 4} .0337117{col 73}{space 3} .0556397
{txt}{space 12}gender {c |}{col 20}{res}{space 2}-.4005203{col 32}{space 2} .1456428{col 43}{space 1}   -2.75{col 52}{space 3}0.006{col 60}{space 4}-.6862866{col 73}{space 3} -.114754
{txt}{space 15}edu {c |}{col 20}{res}{space 2}-.2920391{col 32}{space 2} .0432607{col 43}{space 1}   -6.75{col 52}{space 3}0.000{col 60}{space 4}-.3769211{col 73}{space 3}-.2071571
{txt}{space 11}newQ273 {c |}{col 20}{res}{space 2}   -.1945{col 32}{space 2} .1549438{col 43}{space 1}   -1.26{col 52}{space 3}0.210{col 60}{space 4}-.4985158{col 73}{space 3} .1095158
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} 7.330655{col 32}{space 2} .8845978{col 43}{space 1}    8.29{col 52}{space 3}0.000{col 60}{space 4} 5.594982{col 73}{space 3} 9.066327
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. coefplot, drop (_cons)
{res}
{com}. do "C:\Users\Yellow\AppData\Local\Temp\STD464c_000000.tmp"
{txt}
{com}. margins, at( partyid2=(0 1 2) newQ154_1=(0 1) ) post
{res}
{txt}{col 1}Predictive margins{col 58}{lalign 13:Number of obs}{col 71} = {res}{ralign 5:1,127}
{txt}{col 1}Model VCE: {res:OLS}

{txt}{p2colset 1 13 13 2}{...}
{p2col:Expression:}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{lalign 7:1._at: }{space 0}{lalign 9:newQ154_1} = {res:{ralign 1:0}}
{lalign 7:}{space 0}{lalign 9:partyid2} = {res:{ralign 1:0}}
{lalign 7:2._at: }{space 0}{lalign 9:newQ154_1} = {res:{ralign 1:0}}
{lalign 7:}{space 0}{lalign 9:partyid2} = {res:{ralign 1:1}}
{lalign 7:3._at: }{space 0}{lalign 9:newQ154_1} = {res:{ralign 1:0}}
{lalign 7:}{space 0}{lalign 9:partyid2} = {res:{ralign 1:2}}
{lalign 7:4._at: }{space 0}{lalign 9:newQ154_1} = {res:{ralign 1:1}}
{lalign 7:}{space 0}{lalign 9:partyid2} = {res:{ralign 1:0}}
{lalign 7:5._at: }{space 0}{lalign 9:newQ154_1} = {res:{ralign 1:1}}
{lalign 7:}{space 0}{lalign 9:partyid2} = {res:{ralign 1:1}}
{lalign 7:6._at: }{space 0}{lalign 9:newQ154_1} = {res:{ralign 1:1}}
{lalign 7:}{space 0}{lalign 9:partyid2} = {res:{ralign 1:2}}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2}  6.64267{col 26}{space 2} .2074937{col 37}{space 1}   32.01{col 46}{space 3}0.000{col 54}{space 4} 6.235545{col 67}{space 3} 7.049794
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 6.827342{col 26}{space 2} .2284214{col 37}{space 1}   29.89{col 46}{space 3}0.000{col 54}{space 4} 6.379156{col 67}{space 3} 7.275528
{txt}{space 10}3  {c |}{col 14}{res}{space 2} 5.714752{col 26}{space 2} .2370443{col 37}{space 1}   24.11{col 46}{space 3}0.000{col 54}{space 4} 5.249646{col 67}{space 3} 6.179857
{txt}{space 10}4  {c |}{col 14}{res}{space 2}  6.68747{col 26}{space 2} .1337973{col 37}{space 1}   49.98{col 46}{space 3}0.000{col 54}{space 4} 6.424946{col 67}{space 3} 6.949994
{txt}{space 10}5  {c |}{col 14}{res}{space 2} 6.931906{col 26}{space 2}  .142299{col 37}{space 1}   48.71{col 46}{space 3}0.000{col 54}{space 4} 6.652701{col 67}{space 3} 7.211111
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 6.444871{col 26}{space 2} .1639161{col 37}{space 1}   39.32{col 46}{space 3}0.000{col 54}{space 4} 6.123251{col 67}{space 3} 6.766492
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. marginsplot, ///
>     horizontal ///
>     xdimension(partyid2) ///
>     plotdimension(newQ154_1) ///
>     recast(scatter) recastci(rcap) ///
>     plot1opts(msymbol(O) mcolor(blue))  ci1opts(lcolor(blue))  /// 0 = BLUE
>     plot2opts(msymbol(O) mcolor(red))   ci2opts(lcolor(red))   /// 1 = RED
>     legend(order(1 "Social order = 0" 2 "Social order = 1") pos(3)) ///
>     ylab(1 "KMT" 2 "DPP" 0 "Ind & Others", angle(0)) ///
>     xtitle("Predicted mean of depvar (95% CI)") ///
>     ytitle("Party") ///
>     title("Party × Social order (horizontal with 95% CI)") ///
>     name(partysocial_h, replace)
{res}
{text}{p 0 0 2}Variables that uniquely identify margins: {bf:partyid2 newQ154_1}{p_end}
{res}{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}G:\My Drive\LBGT\JJPS Accepted\JJPS log.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}19 Jan 2026, 22:41:36
{txt}{.-}
{smcl}
{txt}{sf}{ul off}